{template 'header', $template}
<div class="dsn" id="pos_show"><span>当前位置:</span><a href="{$COM[linkurl]}">首页</a> &raquo; <a href="{$MENU[$menuid][linkurl]}">{$MENU[$menuid][name]}</a>{if $itemid} &raquo; {$title}{/if}</div>
<div class="m">
	{template 'side', $template}
	<div class="right">
	{if $itemid}
	<div class="sell_show">
		<div class="main_head text_c"><div><strong>{$title}</strong></div></div>
<div class="main_body">	
		<table width="100%" align="center" class="lh18">
		<tr>
		<td width="270" valign="top">
			<div class="album">
				<table width="100%" cellpadding="0" cellspacing="0">
				<tr align="center">
				<td width="250" valign="top"><div><span id="abm" title="点击图片查看大图"><img src="{$albums[0]}" onload="if(this.width>240){this.width=240;}" onmouseover="SAlbum(this.src);" onmouseout="HAlbum();" onclick="PAlbum(this);" id="DIMG"/></span></div></td>
				</tr>
				<tr>
				<td>
				{loop $thumbs $k $v}<img src="{$v}" width="60" height="60" onmouseover="if(this.src.indexOf('nopic60.gif')==-1)Album({$k}, '{$albums[$k]}');"class="{if $k}ab_im{else}ab_on{/if}" id="t_{$k}"/>{/loop}</td>
				</tr>
				<tr align="center">
				<td height="30" onclick="PAlbum(Dd('DIMG'));"><img src="{DT_SKIN}image/ico_zoom.gif" width="16" height="16" align="absmiddle"/> 点击图片查看大图</td>
				</tr>
				</table>
			</div>
		</td>
		<td valign="top">
			<div id="imgshow" style="display:none;"></div>
			<table width="100%" cellpadding="4" cellspacing="4">
			<tr>
			<td width="80" class="f_dblue">产 品：</td>
			<td><span id="hits" class="f_r">浏览次数：{$hits}</span><strong>{$title}</strong>&nbsp;</td>
			</tr>
			{if $model}
			<tr>
			<td class="f_dblue">型 号：</td>
			<td>{$model}&nbsp;</td>
			</tr>
			{/if}
			{if $standard}
			<tr>
			<td class="f_dblue">规 格：</td>
			<td>{$standard}&nbsp;</td>
			</tr>
			{/if}
			{if $brand}
			<tr>
			<td class="f_dblue">品 牌：</td>
			<td>{$brand}&nbsp;</td>
			</tr>
			{/if}
			<tr>
			<td class="f_dblue">单 价：</td>
			<td class="f_b f_orange">{if $price>0}{$price}{$DT[money_unit]}/{$unit}{else}面议{/if}&nbsp;</td>
			</tr>
			<tr>
			<td class="f_dblue">最小起订量：</td>
			<td class="f_b f_orange">{if $minamount}{$minamount} {$unit}{/if}&nbsp;</td>
			</tr>
			<tr>
			<td class="f_dblue">供货总量：</td>
			<td class="f_b f_orange">{if $amount}{$amount} {$unit}{/if}</td>
			</tr>
			<tr>
			<td class="f_dblue">发货期限：</td>
			<td>自买家付款之日起  <span class="f_b f_orange">{if $days}{$days}{/if}</span> 天内发货</td>
			</tr>
			<tr>
			<td class="f_dblue">更新日期：</td>
			<td>{$editdate}&nbsp;&nbsp;有效期至：{if $todate}{$todate}{else}长期有效{/if}{if $expired} <span class="f_red">[已过期]</span>{/if}</td>
			</tr>
			{if $could_inquiry && !$expired}
			<tr>
			<td class="f_dblue">&nbsp;</td>
			<td><a href="#message"><img src="{DT_SKIN}image/btn_inquiry.gif" alt="询价"/></a></td>
			</tr>
			{/if}
			</table>
			{template 'syy', 'mbase'}
		</td>
		</tr>
		</table>
	</div>

	<div class="main_head"><div><strong>详细信息</strong></div></div>
	<div class="main_body">
		{if $CP}{template 'property', 'chip'}{/if}
		<div class="content" id="content">{$content}</div>
	</div>
	{if $could_inquiry}
	<div class="main_head"><div><strong><span id="message_title">询价单</span><a name="message"></a></strong></div></div>
	<div class="main_body">
		<iframe src="{$inquiry_url}" name="fra" id="fra" style="width:98%;height:468px;" scrolling="no" frameborder="0"></iframe>
	</div>
	{/if}
	{if $could_comment && in_array($moduleid, explode(',', get_module_setting(3, 'comment_module')))}
	<div id="comment_div" style="display:;">
		<div class="main_head"><div><span class="f_r px12">共<span id="comment_count">0</span>条&nbsp;&nbsp;</span><strong><span id="message_title">相关评论</span></strong></div></div>
		<div class="main_body"><iframe src="{$MODULE[3][linkurl]}comment.php?mid={$moduleid}&itemid={$itemid}" id="destoon_comment" style="width:100%;" scrolling="no" frameborder="0"></iframe>
		</div>
	</div>
	{/if}
	<script type="text/javascript">
	try {Dd('type_{$typeid}').style.backgroundColor = '#F1F1F1';}catch (e){}
	</script>
	<script type="text/javascript">
	var content_id = 'content';
	var img_max_width = {$MOD[max_width]};
	</script>
	<script type="text/javascript" src="{DT_PATH}file/script/content.js"></script>
	</div>
	{else}
		<div class="main_head">
			<div><strong>{$MENU[$menuid][name]}</strong></div>
		</div>
		<div class="main_body">
			
			{loop $lists $k $v}
				<div class="selllist">
							<table width="100%" border="0" cellspacing="0" cellpadding="0">
				  <tr>
					<td width="100" valign="top" align="left"><a href="{$v[linkurl]}"><img src="{imgurl($v[thumb], 1)}" width="100" height="100" alt="" style="border:#eeeeee 1px solid;"/></a></td>
					<td  valign="top">
						<div class="introduct">
							<a href="{$v[linkurl]}" class="selltitle">{$v[title]}</a><br />
							<span class="lh18">供货总量：{$v[amount]}{$v[unit]} | 型号：{$v[model]} | 类别：{$_CATEGORY5[$v['catid']]['catname']} | 应用范畴：{if $t['applyid']}{$_APPLY[$t['applyid']]['catname']}{/if} | 交割地：{$v[jiaoged]} | 强度等级：{$v[dengji]} | 表面处理：{$v[biaom]} | 规格：{$v[standard]}</span>
						</div>
					</td>
					<td  valign="top" width="140">
						  {if $v[price]>0}
								 <img src="{$HSPATH}images/gg.jpg" alt="价格" style="cursor:pointer;" /> <span class="f_red px18">{$v[price]}/{$v[unit]}</span>
						  {else}
								<span class="f_red px18">面议</span>
						  {/if}<br/><br/>
						  <span>{$v[minamount]}{$v[unit]}起订 <a href="{if $homeurl}{$v[linkurl]}{else}{userurl($username, 'file=sell&itemid='.$v['itemid'].'', $domain)}{/if}#message" ><img src="{$HSPATH}images/index_48.jpg" alt="询价" style="cursor:pointer;" /></a></span><br/><br/>
						  {timetodate($v[edittime], 5)}	</td>
				  </tr>
				</table>
				
						</div>	
			{/loop}
			<div class="pages">{$pages}</div>
		</div>

<script type="text/javascript">
try {Dd('type_{$typeid}').innerHTML = '<strong>'+Dd('name_{$typeid}').innerHTML+'</strong>';}catch (e){}
</script>
	{/if}
	</div>	
		<div class="clear"></div>
</div>
{template 'footer', $template}